package com.ashin.app;

import com.ashin.app.config.AppConfig;
import com.ashin.spring.AnnotationConfigApplicationContext;

/**
 *
 * 手动写一个IoC
 * @Author: Ashin
 * @Date: 2021/9/25
 * @Description: com.ashin.app
 * @Version: 1.0.0
 */
public class Test {

    public static void main(String[] args) {
        AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(AppConfig.class);

        Object userService = context.getBean("userService");
    }

}
